<script setup lang="ts">
import { Ref, unref } from "vue";
import { TOptions } from "../type";

defineProps<{
  options: TOptions | Ref<TOptions>;
}>();
</script>

<template>
  <el-radio-group>
    <el-radio v-for="(item, index) in unref(options)" :key="index" :value="item.value">{{
      item.label ?? item.value
    }}</el-radio>
  </el-radio-group>
</template>
